package dw.value

/**
 * Represents money.
 */
class Money {

	final static int 		NOT_AVAILABLE = 0
	
	boolean					available
	
	String					currencyCode
	
	Number					value,
							valueOrNull
	
							
	static transients = [ NOT_AVAILABLE ]
							
    static constraints = {
		available(nullable: true)
		
		currencyCode(nullable: false)
		
		value(nullable: false)
		valueOrNull(nullable: true)
    }
}
